<%--
  Created by IntelliJ IDEA.
  User: lub_lenovo
  Date: 2017/8/7
  Time: 17:35
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>

<%@include file="/WEB-INF/jsp/public/header.jsp" %>
<%@include file="/WEB-INF/jsp/public/nav.jsp" %>
<div class="container-fluid">
    <div class="row">
        <div class="left col-sm-2">
            <%@include file="/WEB-INF/jsp/public/menu.jsp" %>
        </div>
        <div class="right col-sm-10">
            <ol class="breadcrumb">
                <li><a href="#">首页</a></li>
                <li><a href="#">新增管理员</a></li>
            </ol>
            <div class="panel panel-danger">
                <div class="panel-heading">
                    新增管理员
                </div>
                <div class="panel-body">
                    <form class="form-horizontal" action="${pageContext.request.contextPath}/admin/insertAdmin.do" method="post">
                        <div class="form-group">
                            <label for="txtName" class="col-sm-2 col-sm-offset-3 control-label">姓名</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control" name="name" id="txtName" placeholder="姓名">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="txtPwd" class="col-sm-2 col-sm-offset-3 control-label">密码</label>
                            <div class="col-sm-4">
                                <input type="password" class="form-control" name="pwd" id="txtPwd" placeholder="密码">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="txtRePwd" class="col-sm-2 col-sm-offset-3 control-label">确认密码</label>
                            <div class="col-sm-4">
                                <input type="password" class="form-control" name="repwd" id="txtRePwd" placeholder="确认密码">
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-offset-5 col-sm-4">
                                <button type="submit" class="btn btn-default">添加</button>
                            </div>
                        </div>
                    </form>
                    ${msg}
                </div>
            </div>
        </div>
    </div>
</div>

<%@include file="/WEB-INF/jsp/public/footer.jsp"%>
